package com.example.speeddating.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.speeddating.common.BaseResponse;
import com.example.speeddating.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.speeddating.entity.User;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author tina
 * @since 2023-06-28 11:14:33
 */
public interface ArticleService extends IService<Article> {


    public ArrayList<String> getArticleImage(Long articleId);

    Page recommendList(int pageSize, int pageNum,Long userId);

    public User selectArticleById(Long id, Long userId);

    Page topicArticleList(int pageSize, int pageNum, Long userId,Long topic_id);

    Page topicArticleList(int pageSize, int pageNum, Long userId);

    Page focusArticleList(int pageSize, int pageNum, Long id);

    public void publishArticle(Article article);

    void deleteArticle(long id);

    Page<Article> selectArticles(int pageSize, int pageNum);
}
